package com.gao.security.verificationcode.web.verificate;

import org.springframework.security.core.AuthenticationException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * 验证码验证管理器
 * </p>
 *
 * @author GaoShuangWen
 * @since 2019-07-29 14:59
 */
public interface VerificationCodeManager {


    void send(HttpServletRequest request, HttpServletResponse response) throws IOException;

    /**
     * 校验验证码
     * @param request
     * @return
     * @throws AuthenticationException
     */
    void verification(HttpServletRequest request) throws AuthenticationException;




}
